import PropTypes from 'prop-types';

function RecommendItem(props) {
  return (
    <div className="flex py-2 border-b border-gray-300 border-solid">
      <div className="num  flex justify-center items-center">
        <div className="w-8 h-8 leading-8 bg-blue-500 text-white text-center rounded-md">
          <span>{props.num}</span>
        </div>
      </div>
      <div className="flex-1 ml-3">
        <a href={props.href} target="_blank">
          <div className="">{props.title}</div>
        </a>
      </div>
    </div>
  );
}

RecommendItem.propTypes = {
  num: PropTypes.number,
  title: PropTypes.string,
  href: PropTypes.string,
};

export default RecommendItem;
